using System;
using System.IO;
using System.Globalization;

namespace Org.JSON
{
	public sealed class Number : Value
	{
		public Number (double value)
		{
			this.value = value;
		}

		private double value;

		public double Value { get { return this.value; }}

		public override void Serialize(TextWriter stream)
		{
			stream.Write(this.value.ToString(CultureInfo.InvariantCulture));
		}
	}
}

